package cn.edu.scau.cmi.wujiaxian.exercise6;

public class Example6_5 {
	public static void main(String[] args) {
		@SuppressWarnings("unused")
		UniverStudent zhang = new UniverStudent(9901, "何晓林", false);
	}
}

class Student1 {
	int number;
	String name;
	Student1() {
	}
	Student1(int number, String name) {
		this.number = number;
		this.name = name;
		System.out.println("我的名字是：" + name + "学号是：" + number);
	}
	
}

class UniverStudent extends Student1 {
	boolean 婚否;
	public UniverStudent(int number, String name, boolean b) {
		super(number, name);
		婚否 = b;
		System.out.println("婚否：" + 婚否);
	}
}